package top.guxx.springframework.test.beans;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author：Guxx
 * @Description：
 * @Date：2024/6/9 19:04
 * @Filename：UserDao
 */
public class UserDao {
    private static Map<String, String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001", "Guxx");
        hashMap.put("10002", "Tom");
        hashMap.put("10003", "Jack");
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }
}
